<%@ include file = "/common/ini.jsp"%>
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%>
<%@ include file = "/common/_currUser_Infor.jsp"%>
<%
    String title = "查询操作日志";
%>
<%@ include file = "/common/detail/_OnForm.jsp"%>
<script>
    function goback()
    {
        window.location.href = "<%= request.getContextPath()%>/moduleinfor/back2LastList.jsp";
    }

    function reset()
    {

    }

    function submitData()
    {
        detailForm.serviceURL.value = "logs.operatinglog.FindOperatingLogsService";
        detailForm.submit();
    }
    function bodyLoadJS()
    {
        detailForm.operatorName.focus();
    }
</script>
<form name="detailForm" action="Controller.jsp" method="get">
    <tr >
        <td class="detailTD11">操作人&nbsp;&nbsp;</td>
        <td class="detailTD12"> 
            <INPUT TYPE="text" NAME="operatorName"  onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
        </td>
    </tr> 
    <tr >
        <td  class="detailTD21">记录关键字&nbsp;&nbsp;</td>
        <td class="detailTD22"> 
            <INPUT TYPE="text" NAME="detail"  onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
        </td>
    </tr> 
<%
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    String startTime = (String)session.getAttribute("operatingLogQuery_startTime");
    if(startTime == null)
    {
        Timestamp s = new Timestamp((new Date()).getTime());
        startTime = sdf.format(s);
    }
%>
    <tr >
        <td  class="detailTD11">操作时间（从）&nbsp;&nbsp;</td>
        <td  class="detailTD12"> 
            <INPUT TYPE="text" NAME="startTime" readonly value="<%= startTime%>">
            <image style="cursor:hand" src="<%= request.getContextPath()%>/images/detail/calendar.gif" onclick="fPopCalendar(detailForm.startTime,detailForm.startTime);">
        </td>
    </tr> 
<%
    String endTime = (String)session.getAttribute("operatingLogQuery_endTime");
    if(endTime == null)
    {
        Timestamp e = new Timestamp((new Date()).getTime());
        endTime = sdf.format(e);
    }

%>
    <tr >
        <td  class="detailTD21">（到）&nbsp;&nbsp;</td>
        <td  class="detailTD22"> 
            <INPUT TYPE="text" NAME="endTime" readonly value="<%= endTime%>">
            <image style="cursor:hand" src="<%= request.getContextPath()%>/images/detail/calendar.gif" onclick="fPopCalendar(detailForm.endTime,detailForm.endTime);">
        </td>
    </tr> 
    <input type="hidden" name="serviceURL">
</form>
<%@ include file = "/common/detail/_UnderFom_OnButton.jsp"%>
      <input  type="button" value="查询" onclick="submitData()" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
      &nbsp;&nbsp;<input  type="button" onclick="window.location.reload();" value="重置">
      &nbsp;&nbsp;<input  type="button" onclick="goback()" value="返回">
<%@ include file = "/common/detail/_UnderFom_underButton.jsp"%>
<%@ include file ="/js/_js_for_date.jsp"%>
<%@ include file = "/js/_js_for_date_input.jsp"%>
<%@ include file = "/js/_js_for_select.jsp"%>
<%@ include file = "/js/_of_js.jsp"%>
